package com.dmpp.mes.controller;


import com.dmpp.mes.bean.ResponseData;
import com.dmpp.mes.parameterInfo.Aroma;
import com.dmpp.mes.parameterInfo.InOutWarehouse;
import com.dmpp.mes.service.AromaService;
import com.dmpp.mes.service.InOutWarehouseService;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@CrossOrigin
@RestController
@RequestMapping("InOutWarehouse")
public class InOutWarehouseController {
//原材料出入库/半成品出入库
    @Autowired
    private InOutWarehouseService service;


    @RequestMapping(value = "/FindAll", method = RequestMethod.POST)
    @ResponseBody
    public ResponseData findAll(Integer page, Integer pageSize,InOutWarehouse inOutWarehouse) {
        PageHelper.startPage(page, pageSize);
        return service.findAll(inOutWarehouse);
    }

}
